# -*- coding: utf-8 -*
from flask import request, Flask, render_template
from add import add

#创建flask的主app
app = Flask(__name__)

# 把蓝图注册到app上
app.register_blueprint(add)


@app.route('/', methods=['GET', 'POST'])
def index():

    return render_template('index.html')
    # '''
    #     <ur>
    #     <li><a href="/add/get_token">获取玩家token,获取前请确保已经连接好数据线</a></li>
    #     <li><a href="/add/reset">重置新玩家</a></li>
    #     <li><a href="/add/reset_local_cache">清除手机本地缓存，注意点击进来即删除</a></li>
    #     <li><a href="/add/get_user">查询玩家信息</a></li>
    #     <li><a href="/add/coin">增加玩家金币</a></li>
    #     <li><a href="/add/hp">修改玩家体力</a></li>
    #     <li><a href="/add/checkpoint">修改玩家主线关卡</a></li>
    #     <li><a href="/add/reset_level">模拟弱电量</a></li>
    #     </ur>
    # '''


if __name__ == '__main__':
    print(app.url_map)
    app.run(host="0.0.0.0", port=5000, debug=True)
    # app.run(debug=True)
